#include "baseCommand.hpp"

namespace qbe::undoRedoT {

void BaseCommand::addTag(std::string info) {
  tags.push_back(info);
}
bool BaseCommand::checkTag(std::string info) {
  bool res = false;
  for (auto& tag : tags) {
    if (info == tag) {
      res = true;
      break;
    }
  }

  return res;
}

}  // namespace qbe::undoRedoT